package cn.itcast.bos.quartz;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.itcast.bos.service.take_delivery.WayBillService;

/**
 * 定时查询数据库，同步索引库
 * 
 * @author itcast
 *
 */
@Service("wayBillIndexSyncBean")
public class WayBillIndexSyncBean  {
	
	private final Logger Log = LoggerFactory.getLogger(WayBillIndexSyncBean.class);
	
	@Autowired
	private WayBillService wayBillService;
	
	public void syncIndex() {
		wayBillService.syncIndex();
		Log.info("WayBillIndexSyncBean syncIndex定时查询数据库，同步索引库");
	}
}
